package com.crl.game.simulation.client.view
{
	import com.crl.animation.AbstractAnimationPlayer;
	import com.crl.animation.BitmapAnimationPlayer;
	
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	
	public class ActorView extends Sprite
	{
		protected var statusContainer:Sprite;
		protected var expContainer:Sprite;
		protected var nameText:TextField;
		
		/**
		 * 触发区域; 
		 */		
		protected var trigger:Sprite;
		
		
		protected var animationPlayer:AbstractAnimationPlayer;
		
		public function ActorView()
		{
			defaults();
		}
		
		
		protected function defaults():void{
			
			statusContainer=new Sprite();
			statusContainer.mouseEnabled=statusContainer.mouseChildren=false;
			
			expContainer=new Sprite();
			expContainer.mouseEnabled=expContainer.mouseChildren=false;
			
			nameText=new TextField();	
			nameText.autoSize=TextFieldAutoSize.LEFT;
			//nameText.defaultTextFormat=new TextFormat();
			
			addChild(getAnimation());
			addChild(statusContainer);
			addChild(expContainer);
			addChild(nameText);
		}
		
		public function getAnimation():AbstractAnimationPlayer{
			return animationPlayer;
		}
		
		/**
		 * 排序元素; 
		 * 
		 */		
		protected function layoutElements():void{
			
		}
	}
}